package com.hk;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.Vector;

public class JCFTest {
	public static void main(String[] args) {
		Set set = new HashSet();
		set.add("lee");
		set.add("lee");
		set.add(new Integer(23));
		System.out.println(set);	//
		
		System.out.println();		////
		List list = new ArrayList();
		list.add("lee");
		list.add("lee");
		System.out.println(list);	//
		list.set(0, "jong");
		System.out.println(list);	//
		
		System.out.println();		////
		Vector v = new Vector(5);
		v.addElement("lee");
		v.add("lee");
		System.out.println(v);		//
		v.set(1, "jong");
		System.out.println(v);		//
		v.setElementAt("kim", 0);
		System.out.println(v);		//
		
		System.out.println();		////
		Map map = new HashMap();
		map.put("1", new Integer(3));
		map.put("2", "cho");
		map.put("2", "lee");
		System.out.println(map);	//
	}
}
